<?php
class imgsrelationModel extends relationModel{
	public $table="upload";
	public $join=array(
		"news"=>array(
			"type"=>"belongs_to",
			"foreign_key"=>"id",
			"field"=>"title"//获取的是news里面的字段
			)
		);


}



?>